raar.process.sensor
Class RARegionSensor_Pie

java.lang.Object
  extended byraar.process.RAProcess
      extended byraar.process.sensor.RASensor
          extended byraar.process.sensor.RARegionSensor
              extended byraar.process.sensor.RARegionSensor_Pie
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RADistanceSensor, RAObjectSensor

public abstract class RARegionSensor_Pie
extends RARegionSensor

A sensor with a certain region of perception (a cone within which the sensor sees something).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.process.sensor.RASensor
emulateRegisterNames, emulateRegisterObjects, output, outputName
 
Fields inherited from class raar.process.RAProcess
hasRun, inregister, outregister, register, sourceCode, statement
 
Constructor Summary
RARegionSensor_Pie(java.lang.String outputName, RAAgent agent)
          Construct.
 
Method Summary
 double getDirection()
           
 double getRadius()
           
 java.awt.Shape getRegion(double currentX, double currentY, double currentA)
          Return the region within which the sensor can see.
 double getSectionWidth()
           
 void setDirection(double d)
           
 void setRadius(double r)
           
 void setSectionWidth(double s)
           
 
Methods inherited from class raar.process.sensor.RARegionSensor
run
 
Methods inherited from class raar.process.sensor.RASensor
acceptsInput, dumpRegisters, execute, explain, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, set, setAgent, setOutput, setSourceCode, suppliesOutput, toString
 
Methods inherited from class raar.process.RAProcess
clone, getProcessName, getSourceCode, reset, setProcessName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RARegionSensor_Pie

public RARegionSensor_Pie(java.lang.String outputName,
                          RAAgent agent)
Construct.

Method Detail

getDirection

public double getDirection()

setDirection

public void setDirection(double d)

getSectionWidth

public double getSectionWidth()

setSectionWidth

public void setSectionWidth(double s)

getRadius

public double getRadius()

setRadius

public void setRadius(double r)

getRegion

public java.awt.Shape getRegion(double currentX,
                                double currentY,
                                double currentA)
Return the region within which the sensor can see.

Specified by:
getRegion in class RARegionSensor